package com.zz.extend.override;

public class Test {
    public static void main(String args[]){
        B b = new B();
        b.print1();
        b.print2();

        System.out.println("=====");
        Student s = new Student("波妞", 12);
        System.out.println(s);//默认调用toString方法
    }
}
